#include "Thread.hpp"
#include <thread>

Thread::~Thread()
{ }

int Thread::id_ = 0;

Thread::Thread(ThreadFunc func):
	func_ (func),
	threadId_ ( id_++)
{
}


int Thread::getid() const
{
	return threadId_;
}
void Thread::start()
{
	std::thread t(func_,threadId_);
	t.detach();
}